// pages/account/charge.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    isShow1: true,
    isShow4: true,
    isShow5: true
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },
  toBillDetail:function(){
    wx.navigateTo({
      url: 'bill-detail/bill-detail',
    })
  },
  // 展开折叠
  toogleShow: function (event) {
    var that = this;
    var dataid = event.currentTarget.dataset.id;
    var isShow1 = that.data.isShow1;
    var isShow4 = that.data.isShow4;
    var isShow5 = that.data.isShow5;
    switch (dataid) {
      case 'one':
        that.setData({
          isShow1: !isShow1
        });
        break;
      case 'four':
        that.setData({
          isShow4: !isShow4
        });
        break;
      case 'five':
        that.setData({
          isShow5: !isShow5
        });
        break;
    }
  }
})